package com.bishe.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息
 * @date 2022/03/20 42:08:24
 */
@Data
public class Message implements Serializable {


    @ApiModelProperty("id")
    private String id;


    @ApiModelProperty("标题")
    private String title;


    @ApiModelProperty("内容")
    private String content;


    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //创建时间
    private Date createTime;


}
